<?php

namespace app\api\model;

use app\common\model\TimeModel;

class Product extends TimeModel
{

    protected $name = "system_product";

    protected $productcreateTime = "product_create_time";
    
    // 规格模型
    public function productSpec()
    {
        return $this->belongsTo('\app\admin\model\warehouse\Productspec', 'product_spec_id', 'id');
    }
    

}